import React from 'react'
import { CapsuleTabs } from 'antd-mobile'
import './index.less'


export default function Index(params) {
    let { menus,changTab } = params
    return (
        <CapsuleTabs className='tab-line' onChange={changTab}>
            {
                menus.map(item =>
                    <CapsuleTabs.Tab title={item.title} key={item.key}>
                        {item.content}
                    </CapsuleTabs.Tab>
                )
            }

        </CapsuleTabs>
    )
}
